export INSTALLPATH=${shell pwd}/../install
export FFMPEGCFLAGS=-I${INSTALLPATH}/include/
export FFMPEGLIBS=-L${INSTALLPATH}/lib/ -lavdevice -lavfilter -lavformat -lavcodec -lswresample -lswscale -lavutil -fvisibility=hidden -Wl,-Bsymbolic
export UMAPIPATH = ${INSTALLPATH}/include/umapi
export INIPARSERPATH = ${INSTALLPATH}/include/iniparser

all:
	gcc httptools.c -g -o umHttpTools $(FFMPEGCFLAGS)  -I$(UMAPIPATH)/include -I$(UMAPIPATH)/include/os/ -I$(UMAPIPATH)/include/errcode/ -L$(UMAPIPATH)/../../lib/ -lumapi $(FFMPEGLIBS) $(FFMPEGCFLAGS) -liniparser -lcurl
	gcc filecopy.c  -g -o copyFile -I$(UMAPIPATH)/include -I$(UMAPIPATH)/include/os/ -I$(UMAPIPATH)/include/errcode/ -L$(UMAPIPATH)/../../lib/ -lumapi -lm -lpthread -ldl